<template>
  <div class="hello">
    <h1>spa2</h1>
    <button @click="qiehuan">xiu~~切换</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  methods: {
    qiehuan() {
      this.eventRoot.$emit('goFourth')
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped></style>
